﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Diagnostics;
using System.Linq;
using System.Text;

namespace ALinq.BBS.DataAccess
{
    partial class Reply : IArticle
    {
        //void SetDataContext(DataContext dataContext)
        //{
        //    this.DataContext = (ArticleDataContext)dataContext;
        //}

        //internal ArticleDataContext DataContext { get; private set; }

        //partial void OnValidate(ChangeAction action)
        //{
        //    var vc = new ValidationContext(this, null, null);
        //    Validator.ValidateObject(this, vc);
        //}

        public User User
        {
            get { return DataContext.Users.Single(o => o.ID == UserID); }
        }
    }
}
